<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
	</view>
</template>

<script>
function request(url,method="GET",data={}){
	return new Promise((resolve,reject)=>{
		
	})
	uni.request({
		url,method,data,
		success:(res)=>{
			resolve(res)
		},
		fail:(err)=>{
			reject(err)
		}
	})
}
request("https://unidemo.dcloud.net.cn/api/news").then(res=>{
	console.log(res)
})
</script>

<style>
	
</style>
